var ET = require('elementtree');
var STATIC = {
    customerAccountId: 1430357,
    // customerAccountId: 1411130357,
    password: 'brysjhhrh6',
    developerToken: 'OM7HS4S5',
    userName: 'Alibaba_API',
    customerId: 13025708
};

var REPORTTYPE = {
    KeywordPerformanceReportRequest: 'KeywordPerformanceReportRequest'
};

var ErrorObj = {
    faultcode: '',
    faultstring: '',
    detail: {
        AdApiFaultDetail: {
            TrackingId: '',
            Errors: []
        },
        ApiFaultDetail: {
            TrackingId: '',
            BatchErrors: [],
            OperationErrors: []
        }
    },
    xml: null
};
var SOAP = {
    ns_soapenv: 'http://schemas.xmlsoap.org/soap/envelope/',
    ns_xsd: 'http://www.w3.org/1999/XMLSchema',
    ns_xsi: 'http://www.w3.org/2001/XMLSchema-instance',
    ns_soapenc: 'http://schemas.xmlsoap.org/soap/encoding/',
    ns_arrays: 'http://schemas.microsoft.com/2003/10/Serialization/Arrays',
    ns_bingads: 'https://adcenter.microsoft.com/v8',
    ns_adAPI: 'https://adapi.microsoft.com'
};
var ACTION = {
    GetCampaignsByAccountId: 'GetCampaignsByAccountId',
    SubmitGenerateReport: 'SubmitGenerateReport',
    PollGenerateReport: 'PollGenerateReport'
};
ET.register_namespace('SOAP-ENV', SOAP.ns_soapenv);
ET.register_namespace('xsd', SOAP.ns_xsd);
ET.register_namespace('xsi', SOAP.ns_xsi);
ET.register_namespace('SOAP-ENC', SOAP.ns_soapenc);
ET.register_namespace('arrays', SOAP.ns_arrays);
ET.register_namespace('bingads', SOAP.ns_bingads);
ET.register_namespace('adAPI', SOAP.ns_adAPI);

exports.downloadPath = '/home/sonic/alibaba-work/pts/report/download/';
exports.soapXMLPath = '/home/sonic/alibaba-work/nodejs/report/Bing/soap/';
exports.SOAP = SOAP;
exports.ET = ET;
exports.STATIC = STATIC;
exports.REPORTTYPE = REPORTTYPE;
exports.ErrorObj = ErrorObj;
exports.ACTION = ACTION;